rolesystem.core
Class RoleAction

java.lang.Object
  extended by rolesystem.core.RoleAction
All Implemented Interfaces:
java.io.Serializable

public class RoleAction
extends java.lang.Object
implements java.io.Serializable

This class represents an action done through a registration. Instances of this class are constant, once created they cannot be changed.

See Also:
Serialized Form

Constructor Summary
RoleAction(java.lang.String name, int addressee)
          Constructs an action with no informative content.
RoleAction(java.lang.String name, int addressee, java.io.Serializable content)
           
 
Method Summary
 int getAddressee()
          Returns the identifier of the addressee of this action.
 java.io.Serializable getContent()
          Returns the informative content of this action.
 java.lang.String getName()
          Returns the name of this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleAction

public RoleAction(java.lang.String name,
                  int addressee,
                  java.io.Serializable content)
Parameters:
name - Name of this action.
addressee - Identifier of the addresseer of this action.
content - Informative content of this action.

RoleAction

public RoleAction(java.lang.String name,
                  int addressee)
Constructs an action with no informative content.

Parameters:
name - Name of this action.
addressee - Identifier of the addresseer of this action.
Method Detail

getName

public java.lang.String getName()
Returns the name of this action.

Returns:
The name of this action.

getAddressee

public int getAddressee()
Returns the identifier of the addressee of this action.

Returns:
The identifier of the addressee of this action.

getContent

public java.io.Serializable getContent()
Returns the informative content of this action.

Returns:
The informative content of this action.